//后台请求根路径
axios.defaults.baseURL = 'http://124.223.14.236:8060/admin';

//请求拦截器
axios.interceptors.request.use(config => {
  // Do something before request is sent
  const token = localStorage.getItem('x-token')
  if(token){
    config.headers['x-token'] = token
  }
  return config;
  },error => {
  // Do something with request error
  return Promise.reject(error);
  });